#pragma once
# include "EncoderFilter.h"

class _declspec(dllexport) GetDataFilter : public EncoderFilter {
public:
	GetDataFilter();
	uint8_t* getVideoData() const;
	size_t getVideoDataSize() const;
	uint8_t* getAudioData() const;
	size_t getAudioDataSize() const;
	virtual void afterVideoEncode(AVPacket* _packet) override;
	virtual void afterAudioEncode(AVPacket* _packet) override;
	~GetDataFilter();
private:
	uint8_t* m_video_data = nullptr;
	int m_video_data_size = 0;
	uint8_t* m_audio_data = nullptr;
	int m_audio_data_size = 0;
};
